<template>
	<view>
		<text>我是test2组件</text>
		<button type="primary" @click="test">我是按钮</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			test()  {
				uni.$emit("testEmit",{name:"click2"});
			}
		}
	}
</script>

<style lang="scss">

</style>
